package com.business.leaf.core.segment.ex;

import com.business.base.framework.core.exception.constant.base.BaseExceptionThrower;

/**
 * @ClassName LeafEx
 * @Description TODO
 * @Author lgh
 * @Date 2020-04-08 17:59
 */
public enum LeafEx implements BaseExceptionThrower {

    LEAF_UNINIT("1001","尚未初始化"),

    LEAF_NOT_HAS_TAG("1002","不存在该业务"),

    LEAF_UPDATE_TAG_MAXID_FAIL("1003","业务tag初始化失败"),

    LEAF_GAIN_ID_FAIL("1004","获取ID失败"),

    LEAF_INSERT_LEAF_FAIL("1005","插入页节点失败");

    LeafEx(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code,message;

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMesssage() {
        return this.message;
    }
}
